]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix overview sizing when exiting via thumbnails
authorAlexander Larsson <alexl@redhat.com>
Tue, 22 Mar 2011 11:46:56 +0000 (12:46 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 22 Mar 2011 11:50:14 +0000 (12:50 +0100)
We need to update WorkspacesView._ZoomOut before calling
_updateWorkspacesGeometry() in show(), as otherwise the old
value is kept. This was a problem if we previously left the
overview zoomed out.

js/ui/workspacesView.js

index f791f9fb4ac69543431eea39231b8226c815cabf..567f90a2c1ba8c23a3874b719cbe57d9c89525c4 100644 (file)
@@ -619,6 +619,10 @@ WorkspacesDisplay.prototype = {
     },
 
    show: function() {
+        this._zoomOut = this._alwaysZoomOut;
+        this._zoomFraction = this._alwaysZoomOut ? 1 : 0;
+        this._updateZoom();
+
         this._controls.show();
         this._thumbnailsBox.show();
 
@@ -661,9 +665,6 @@ WorkspacesDisplay.prototype = {
                                                           Lang.bind(this, this._dragEnd));
 
         this._onRestacked();
-        this._zoomOut = this._alwaysZoomOut;
-        this._zoomFraction = this._alwaysZoomOut ? 1 : 0;
-        this._updateZoom();
     },
 
     hide: function() {